﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gollie.Controls
{
	public partial class AuthenticationRequiredSalesBaseUserControl : AuthenticationRequiredBaseUserControl
	{
		protected override bool CheckPrivileges()
		{
			bool ok = base.CheckPrivileges();
			if (ok)
			{
				ok = (
					this.UserInfo.Role == Role.Administrator ||
					this.UserInfo.Role == Role.Sales ||
					this.UserInfo.Role == Role.SuperUser
					);
			}

			return ok;
		}
	}
}